-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix ToUint64E and ToUint64 overflow, e.g. "18446744073709551615"(math.MaxUint64) #175
base: master
Are you sure you want to change the base?
Conversation
For code consistency, other uint cast methods are also changed to use strconv.ParseUint. tests look good. |
@Imatvoid you need to cool off with these "mentions" (and emails). |
ok |
I saw this #140, but seemingly changing |
The problem is on our radar, but it's a little bit more complicated than that. We will provide a solution. Until then, using a fork should be relatively easy in Go. |
Thank you for your reply, actually, I'm interested in the "a little bit more complicated" problem. I will pay attention to the progress and try to learn something. It would be better if I could help. |
Hi @sagikazarmark, any updates with this one? |
cast.ToUint64E("18446744073709551615") // math.MaxUint64
will get err about value out of range. For ToUint64E, using strconv.ParseUint instead of strconv.ParseInt.